data = importfile("D:\ScientificResearch\2024-03-13-IGBT\output" + ".csv", [2, Inf]);

% hold on;
% plot(data.t,data.H_sig,'r');
% plot(data.t,data.V_valve);
% plot(data.t,data.VC,'g');

tiledlayout(4,1);

ax1 = nexttile; 
hold on;
plot(data.t,data.I0,"--");
plot(data.t,data.V0);
plot(data.t,data.V_valve);
plot(data.t,data.vsource,'r');
legend("I0","V0","vv","vsource");

ax2 = nexttile;
hold on;
plot(data.t,data.Gout0);
legend("Gout0");

ax3 = nexttile;
hold on;
plot(data.t,data.Jout0);
legend("Jout0");

ax4 = nexttile;
hold on;
plot(data.t,data.VC);
legend("VC");


linkaxes([ax1 ax2 ax3 ax4],"x");
